package com.ruoyi.oa.task;

import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.util.ObjectUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.spring.SpringUtils;
import com.ruoyi.oa.domain.OaHoliday;
import com.ruoyi.oa.domain.OaHumanClock;
import com.ruoyi.oa.domain.bo.OaHumanClockCountBo;
import com.ruoyi.oa.domain.vo.OaHumanClockCountVo;

import com.ruoyi.oa.service.*;
import com.ruoyi.system.domain.Dto.ClockUserDto;
import com.ruoyi.system.service.ISysDeptService;
import org.springframework.stereotype.Component;

import java.text.DecimalFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.stream.Collectors;

@Component
//@EnableScheduling
public class MyTask {

    private static final IOaHumanClockCountService iOaHumanClockCountService=SpringUtils.getBean(IOaHumanClockCountService.class);

    private static final IOaHumanClockService iOaHumanClockService =SpringUtils.getBean(IOaHumanClockService.class);

    private static final ISysDeptService iSysDeptService=SpringUtils.getBean(ISysDeptService.class);

    private static final IOaHolidayService iOaHolidayService=SpringUtils.getBean(IOaHolidayService.class);
//    @Scheduled(cron = "* 1 0 * * ?") // 每分钟执行一次
    public void myTask() {
        System.out.println("定时任务执行了！");
    }
}
